package com.ygs.secs.service.impl;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

import com.ygs.secs.model.Admin;
import com.ygs.secs.mapper.AdminMapper;
import com.ygs.secs.service.AdminService;

@Service
public class AdminServiceImpl implements AdminService {

    @Resource
    private AdminMapper adminMapper;

    @Override
    public int deleteByPrimaryKey(String adminid) {
        return adminMapper.deleteByPrimaryKey(adminid);
    }

    @Override
    public int insert(Admin record) {
        return adminMapper.insert(record);
    }

    @Override
    public int insertSelective(Admin record) {
        return adminMapper.insertSelective(record);
    }

    @Override
    public Admin selectByPrimaryKey(String adminid) {
        return adminMapper.selectByPrimaryKey(adminid);
    }

    @Override
    public int updateByPrimaryKeySelective(Admin record) {
        return adminMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Admin record) {
        return adminMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<Admin> list) {
        return adminMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<Admin> list) {
        return adminMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<Admin> list) {
        return adminMapper.batchInsert(list);
    }

    @Override
    public int batchDelete(String[] admins) {
        return adminMapper.batchDelete(admins);
    }

    @Override
    public List<Admin> selectallAdmin() {
        return adminMapper.selectallAdmin();
    }

    @Override
    public List<Admin> getAdminByIdAndName(Admin record) {
        return adminMapper.getAdminByIdAndName(record);
    }

}


